package cxf.spring.demo.domain.user;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.Set;
import java.util.TreeSet;

/**
 * User: Vlad Vinichenko (akerigan@gmail.com)
 * Date: 23.04.2009
 * Time: 12:46:05
 */
@XmlRootElement(name = "users")
@XmlAccessorType(XmlAccessType.FIELD)
public class UserList {

    @XmlElement(name = "user")
    Set<String> logins = new TreeSet<String>();

    public Set<String> getLogins() {
        return logins;
    }

    public void setLogins(Set<String> logins) {
        this.logins = logins;
    }

    public void addLogin(String login) {
        logins.add(login);
    }

}
